package com.dyh.quickdemo.dasync;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Consumer;

/*
@Author=Joey Wheeler
@Date=2021/3/11 16:53
*/
@RestController
@RequestMapping("/AsyncHandlerController")
public class AsyncHandlerController {

    @Autowired
    ThatBiz thatBiz;

    @RequestMapping("/fun")
    public String fun(){
        thatBiz.x(-1L);
        return "success";
    }

}
